<template>
<div>
  <h1>详情页</h1>
  <ol>
    <li>{{form.text}}</li>
  </ol>
</div>
</template>

<script>
export default {
  name: "news_xq",
  data() {
    return{
      form:{},
      id:this.$route.query.id,
      userid : localStorage.getItem('userid')
    }
  },
  methods:{
    get(){
      this.$axios.get('users/NewAPI/?id='+this.id + '&userid='+this.userid)
      .then(res=>{
        this.form = res.data.list
        if(res.data.code==299){
          alert(res.data.mes)
        }
      })
    }
  },
  mounted() {
    this.get()
  }
}
</script>

<style scoped>

</style>
